<template>
    <div>
     <el-button type="primary" icon="el-icon-s-home" round @click="tomyorders">返回我的订单</el-button>
     <el-table
            :data="onetenantsData"
            border
            style="width: 100%"
        >
            <el-table-column prop="name" label="姓名" width="180">
            </el-table-column>
            <el-table-column prop="phone" label="电话号码" width="180">
            </el-table-column>
            <el-table-column label="信用值">
                <template slot-scope="scope">
                    <el-progress type="circle" :percentage="scope.row.credits"></el-progress>
                </template>
            </el-table-column>
     </el-table>
    </div>
</template>

<script>
import { createNamespacedHelpers } from "vuex";
const {mapState,mapMutations,mapGetters,mapActions} = createNamespacedHelpers("tenants");
export default {
    props:['_id'],
    computed:{
        ...mapState(['onetenantsData']),
    },
    mounted() {
        this.checktenants(this._id);
    },
    methods:{
        ...mapActions(['checktenants']),

        //返回我的订单 冰
        tomyorders(){
            this.$router.push('/System/myorders');
        }
    }
    
}
</script>